package com.yzl.meeting.business.dao;

import com.yzl.meeting.business.entity.Permission;
import com.yzl.meeting.business.entity.Role;
import com.yzl.meeting.business.vo.RolePerVo;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/**
 * @Title: RolePermissionDao
 * @Author: 姚志立
 * @Description:
 * @Date: 2020/10/12 16:43
 * @Version: 1.0
 */
public interface RolePermissionDao {
    int addPer(Permission permission) throws Exception;

    int addRole(RolePerVo rolePerVo) throws Exception;

    List<Role> selectAllRole() throws Exception;

    List<Permission> selectAllPer() throws Exception;

    void addRolePer(int roleId,Integer perId) throws Exception;

    void deletePer(Integer perId) throws SQLException;

    void deleteRolePer(Integer roleId) throws SQLException;

    void deleteRole(Integer roleId) throws SQLException;
}
